﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace BLL
{
    public partial class T_Public
    {
        private readonly DAL.T_Public dal = new DAL.T_Public();
        /// <summary>
        /// 执行SQL语句，返回影响的记录数
        /// </summary>
        /// <param name="SQLString">SQL语句</param>
        /// <returns>影响的记录数</returns>
        public int ExecuteSql(string SQLString)
        {
             return dal.ExecuteSql(SQLString); 
        }
        public int GetMaxID(string FieldName, string TableName)
        {
            return dal.GetMaxID(FieldName, TableName);
        }
                        /// <summary>
        /// 执行查询语句，返回DataSet
        /// </summary>
        /// <param name="SQLString">查询语句</param>
        /// <returns>DataSet</returns>
        public DataSet Query(string SQLString)
        {
            return dal.Query(SQLString);
        }
    }
}
